package com.budwk.app.sqfw.services;

import com.budwk.app.sqfw.models.PersonInfo;
import com.budwk.app.sqfw.models.Sqfw_formSummary_new;
import com.budwk.app.sqfwV2.dto.dto.PersonInfoDTO;
import com.budwk.app.sqfwV2.dto.vo.PersonHouseVo;
import com.budwk.app.sqfwV2.dto.vo.PersonInfoReqVo;
import com.budwk.starter.common.page.Pagination;
import com.budwk.starter.common.result.Result;
import com.budwk.starter.database.service.BaseService;

import java.util.List;

public interface PersonInfoService extends BaseService<PersonInfo> {

    Result<Pagination> listPersonByPage(PersonInfoReqVo reqVo);

    void deleteData(PersonInfoReqVo reqVo);

    PersonInfo submitData(PersonInfoDTO reqVo);

    List<PersonHouseVo> queryRelateHouse(String personId);

    PersonInfo getPersonInfo(String idcard);

    Result<Pagination> listPersonRecordByPage(PersonInfoReqVo reqVo);

    Sqfw_formSummary_new getPersonDetail(String personId, String type);

    List<Sqfw_formSummary_new> listPersonDetail(String personId);

    PersonInfo saveOrUpdatePerson(PersonInfoDTO reqVo);

    PersonInfo queryPersonDetail(String personId);
}
